package reduce.fz.com.reduce.util;

import reduce.fz.com.reduce.bean.User;
import reduce.fz.com.reduce.util.base.PreferenceUtil;

/**
 * Created by qingshengzheng on 15/8/23.
 */
public class UserUtil {

    public static   User getUser()
    {
        User user=new User();
        String username=PreferenceUtil.getStringPreference("username");
        String password=PreferenceUtil.getStringPreference("password");
        String mobile=PreferenceUtil.getStringPreference("mobile");
        Long uid=PreferenceUtil.getLongPreferences("uid",0);
        user.setUid(uid);
        user.setPassword(password);
        user.setMobile(mobile);
        user.setUsername(username);
        return user;
    }
}
